Fix 'xm reboot'
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 14 Sep 2007 15:05:39 +0000 (16:05 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 14 Sep 2007 15:05:39 +0000 (16:05 +0100)
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
tools/python/xen/xend/XendDomainInfo.py

index 65e38f82d530da06ec85f579dd7056dc919d6064..ccd4012a604c7791d6bec3b58ab3a838d76c7f6f 100644 (file)
@@ -2167,7 +2167,7 @@ class XendDomainInfo:
             raise VmError('Invalid VM Name')
 
         dom =  XendDomain.instance().domain_lookup_nr(name)
-        if dom and dom.domid != self.domid:
+        if dom and dom.domid and dom.domid != self.domid:
             raise VmError("VM name '%s' already exists%s" %
                           (name,
                            dom.domid is not None and